<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;

Route::rule('mobile/index','mobile/Index/index');   //  移动端     首页
Route::rule('mobile/about','mobile/About/index');   //  关于我们    简介
return [
/*    '__pattern__' => [
            'name' => '\w+',
        ],
        '[hello]'     => [
            ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
            ':name' => ['index/hello', ['method' => 'post']],
        ],*/

    //使用路由别名
    '__alias__' =>  [
        //pc
        'index'         => 'index/Index',//首页

        //移动端
       /* 'mobile'                => 'mobile/Index',      //  首页*/
       /* 'about'                 => 'mobile/About'        //  关于我们*/
    ],

   /* // 定义资源路由
    '__rest__'=>[
        // 指向index模块的blog控制器
        'mobile/about'=>'mobile/About',
    ],*/


];
